home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / shanghai.000 / shanghai / shanghai-1.0 / game.h < prev    next >
C/C++ Source or Header  |  1995-05-24  |  678b  |  28 lines

  1. #ifndef __GAME_H__
  2. #define __GAME_H__
  3.  
  4. #include "forms.h"
  5. #include "gui.h"
  6.  
  7. #define DEPTHSCANSTACKSIZE  4096
  8.  
  9. typedef struct {
  10.   enum dsStatus {dsBusy=1,dsFail,dsSuccess,dsSuccessSelected} status;
  11.   unsigned char occ[144];
  12.   unsigned char stack[DEPTHSCANSTACKSIZE];
  13.   int           sp,pp;
  14.   int           remain;
  15. } DepthScanRec;
  16.  
  17. #include "board.h"
  18.  
  19. extern int default_isfastgame;
  20.  
  21. enum dsStatus depth_scan(BoardRec *board_rec);
  22. BoardRec *initialize_board_rec(FD_board *board,BoardRec *board_rec,int seed);
  23. void handle_mouse_push(int mx,int my,int key,BoardRec *board_rec);
  24. void handle_status_push(int key,BoardRec *board_rec);
  25. void game_undo_move(BoardRec *board_rec);
  26.  
  27. #endif
  28.